'use strict'

// 正式环境
// const gateHost = 'hywater.hytech.top'
// const wsHost = 'hywater.hytech.top'
// const gateHost = 'hywater.pro-goo.com'
// const wsHost = 'hywater.pro-goo.com'

// 测试环境
const gateHost = '119.3.254.158'
// const wsHost = '114.116.241.118'

// 本地环境
// const baseHost = '192.168.50.12'
// const algoHost = '192.168.50.12'
// const wsHost = '192.168.50.12'
// const alertHost = '192.168.50.219'
// const openHost = '192.168.50.219'

// 阿里云环境 //含token 含网关
// const baseHost = '39.103.224.197'
// const algoHost = '39.103.224.197'
// const wsHost = '39.103.224.197'
// const alertHost = '39.103.224.197'
// const openHost = '39.103.224.197'

// 展示环境 001
// const baseHost = '39.98.121.176'
// const algoHost = '39.98.121.176'
// const wsHost = '39.98.121.176'
// const alertHost = '39.98.121.176'
// const openHost = '39.98.121.176'

// 展示环境 002
// const baseHost = '124.70.104.124'
// const algoHost = '124.70.104.124'
// const wsHost = '124.70.104.124'
// const alertHost = '124.70.104.124'
// const openHost = '124.70.104.124'

// 承启通私有化 //含token
// const baseHost = '172.16.247.132'
// const wsHost = '172.16.247.134'
// const alertHost = '172.16.247.136'
// const openHost = '172.16.247.136'

// 门头沟项目 //含token
// const baseHost = '39.103.218.39'
// const algoHost = '39.103.218.39'
// // const algoHost = '121.36.99.22'
// const wsHost = '39.103.218.39'
// const alertHost = '39.103.218.39'
// const openHost = '39.103.218.39'

//其他环境 ----- 端口 ------
// const basePort = '8980'
// const wsPort = '8443'
// const alertPort = '8980'
// const openPort = '8086'

// Lin测试环境 ----- 端口 ------
// const basePort = '8543'
// const wsPort = '8543'
// const algoPort = '8182'
// const alertPort = '8544'
// const openPort = '8086'

// 正式环境 ----- 端口 ------
const gatePort = '8888'
// const wsPort = '8087'

// 图片路径
// const imageHost = 'hywater.pro-goo.com'
// const imagePort = '8002'
// const filePort = '8008'

// ---------------- 中台-测试 -----------------
const progooIp = '114.116.241.118:19204' // 测试环境
const progooFile = '119.3.254.158:8008' // 静态文件下载
const progooSocket = '114.116.241.118:8087' // socket
const progooCommunication = '114.116.241.118:8446' // socket

// ---------------- 中台-生产 -----------------
// const progooIp = 'hywater.pro-goo.com:19204'   // 测试环境
// const progooFile = 'hywater.pro-goo.com:8008'     // 静态文件下载
// const progooSocket = 'hywater.pro-goo.com:8087';  // socket
// const progooCommunication = 'hywater.pro-goo.com:8446' // socket

const progooImage = 'hywater.pro-goo.com:8002';

module.exports = {
  NODE_ENV: '"production"',
  VERSIONS: '"V3.5.4"',

  // ------------ 水质 --------------
  API_BASE_API: `"http://${gateHost}:${gatePort}/gate/water-system/api/"`,
  //API_ALGO_API: `"http://${gateHost}:${gatePort}/gate/water-algo/api/"`,
  API_ALERT_API: `"http://${gateHost}:${gatePort}/gate/water-maintenance/"`,
  //API_OPEN_API: `"http://${gateHost}:${gatePort}/gate/water-api/api/"`,
  //API_FILE_API: `"http://${gateHost}:${filePort}/"`,
  //API_IMAGE_API: `"http://${imageHost}:${imagePort}/"`,
  //API_WS_API: `"ws://${wsHost}:${wsPort}/"`,

  // ------------ 中台 --------------
  PROGOO_GATE_WATER: `"http://${progooIp}/gate/water/"`, // 水质
  PROGOO_FILE: `"http://${progooFile}/"`, // 静态文件下载
  PROGOO_SOCKET: `"ws://${progooSocket}/"`, // socket
  PROGOO_IMAGE:  `"http://${progooImage}/"`,
  PROGOO_COMMUNICATION:  `"http://${progooCommunication}/api/"`,

}
